package com.bdqn.service.impl;

import com.bdqn.dao.deptdao;
import com.bdqn.pojo.Dept;
import com.bdqn.service.deptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class deptServiceimpl  implements deptService {

    @Autowired
    private deptdao deptm;



    @Override
    public int adddept(Dept dept) {
        return deptm.adddept(dept);
    }

    @Override
    public List<Dept> findDeptAll() {
        return deptm.findDeptAll();
    }

    @Override
    public Dept getDeptByid(Integer id) {
        return deptm.getDeptByid(id);
    }
}
